<%@ Register TagPrefix="cc2" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>

<%@ Page Language="c#" Inherits="PHSRAG.Insight21.Humans.WorkFlowActivity" CodeFile="WorkFlowActivity.aspx.cs" %>

<%@ Register TagPrefix="cc1" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Workflow Activity</title>
    <link href="../Insight21.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="wfActivityListForm" method="post" runat="server">
        <table class="Container">
            <tr>
                <td>
                    <table cellspacing="0" width="100%">
                        <tr>
                            <td>
                                <cc1:Header ID="header" runat="server" OnNavigate="OnHeaderNavigate"></cc1:Header>
                                <cc1:HumansSubNavigation ID="humansSubNavigation" Visible="false" runat="server"></cc1:HumansSubNavigation>
                                <cc1:AnimalsSubNavigation ID="animalsSubNavigation" Visible="false" runat="server"></cc1:AnimalsSubNavigation>
                                <cc2:BreadCrumb ID="breadCrumb" runat="server" OnNavigate="OnSubNavigate"></cc2:BreadCrumb>
                            </td>
                        </tr>
                    </table>
                    <table cellspacing="2" style="background-color:#ffffff" width="100%">
                        <tr>
                            <td align="left">
                                <cc2:ExpandingPanel ID="searchContainer" runat="server" ExpansionToggler="expansionToggler">
                                    <StaticTemplate>
                                        <table class="Search" cellspacing="0" width="100%">
                                            <tr>
                                                <td>
                                                    <cc1:CommonSearch ID="commonSearch" runat="server" Module="Humans" ViewOptionVisible="False"
                                                        ExtendedSearchControl="humansSearch" Field1Prompt="Protocol #:" Field1ID="protocolNumber"
                                                        OnClearSelection="OnClearSelection" Field2Prompt="Title:" Field2ID="protocolTitle"
                                                        OnSearch="OnSearch" LabPickerVisible="false" AddSinglePIToSearchCriteria="false">
                                                    </cc1:CommonSearch>
                                                </td>
                                            </tr>
                                            <tr style="display: none">
                                                <td class="PanelSeparator">
                                                </td>
                                            </tr>
                                            <tr style="display: none">
                                                <td>
                                                    <cc2:ExpansionToggler ID="expansionToggler" runat="Server" CollapsedLinkCaption="Advanced Search Options"
                                                        ExpandedLinkCaption="Advanced Search Options" CollapsedImage="~/Images/Arrow_RT.gif"
                                                        ExpandedImage="~/Images/Arrow_DN.gif"></cc2:ExpansionToggler>
                                                </td>
                                            </tr>
                                        </table>
                                    </StaticTemplate>
                                    <DynamicTemplate>
                                        <table class="SearchDynamic">
                                            <tr>
                                                <td>
                                                    <cc1:HumansSearch ID="humansSearch" runat="server"></cc1:HumansSearch>
                                                </td>
                                            </tr>
                                        </table>
                                    </DynamicTemplate>
                                </cc2:ExpandingPanel>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:SearchCriteriaDisplay ID="searchCriteriaDisplay" runat="server" />
                            </td>
                        </tr>
                    </table>
                    <table id="dynamicTable" class="Invisible">
                        <tr>
                            <td>
                                <cc2:ActivityIndicator ID="activityIndicator" ContainerID="dynamicTable" runat="server">
                                </cc2:ActivityIndicator>
                                <cc2:PostbackGuard ID="postbackGuard" runat="server"></cc2:PostbackGuard>
                                <cc2:Annunciator ID="annunciator" ContainerID="dynamicTable" runat="server"></cc2:Annunciator>
                            </td>
                        </tr>
                    </table>
                    <!--<table width="100%" cellspacing="0">
				<tr height = 20>
					<td class="PageName">Activity List</td>
					<td><cc2:downloadbar id="downloadBar" runat="server" visible="false"></cc2:downloadbar></td>
				</tr>
			</table><br>-->
                    <br />
                    <asp:Panel ID="gridContainer" runat="server">
                        <table cellspacing="0" width="100%" class="PlaceBar">
                            <tr style="height:25px">
                                <td class="PageName">
                                    Workflow Tasks |
                                    <asp:Label ID="recordCount" runat="server"></asp:Label>&nbsp;Records
                                </td>
                                <td align="right">
                                </td>
                            </tr>
                        </table>
                        <table cellspacing="0" width="100%">
                            <tr>
                                <td>
                                    <cc2:Pager ID="topPager" runat="server"></cc2:Pager>
                                </td>
                            </tr>
                        </table>
                        <table width="100%">
                            <tr>
                                <td>
                                    <asp:DataGrid ID="workflowActivityList" AllowCustomPaging="True" GridLines="None"
                                        AutoGenerateColumns="False" runat="server" AllowSorting="True" CssClass="DataGrid"
                                        Width="100%">
                                        <AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
                                        <ItemStyle CssClass="DataGridItem"></ItemStyle>
                                        <HeaderStyle CssClass="DataGridHeader"></HeaderStyle>
                                        <Columns>
                                            <asp:BoundColumn Visible="False" DataField="ProtocolID" SortExpression="ProtocolID"
                                                HeaderText="Protocol ID"></asp:BoundColumn>
                                            <asp:BoundColumn Visible="False" DataField="ProtocolProcessID" SortExpression="ProtocolProcessID"
                                                HeaderText="ProtocolProcessID"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="ProtocolNumber" SortExpression="ProtocolNumber" HeaderText="Protocol Number">
                                            </asp:BoundColumn>
                                            <asp:ButtonColumn Text="Protocol Title" DataTextField="ProtocolTitle" SortExpression="ProtocolTitle"
                                                HeaderText="Protocol Title" CommandName="SelectWFDetail"></asp:ButtonColumn>
                                            <asp:BoundColumn DataField="Type" SortExpression="Type" HeaderText="Type"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="PIName" SortExpression="PIName" HeaderText="PI Name"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="NeededAction" SortExpression="NeededAction" HeaderText="Action">
                                            </asp:BoundColumn>
                                            <asp:BoundColumn DataField="DateAssigned" SortExpression="DateAssigned" HeaderText="Date Assigned">
                                            </asp:BoundColumn>
                                            <asp:BoundColumn Visible="False" DataField="AccessLevel" ReadOnly="True"></asp:BoundColumn>
                                            <asp:BoundColumn Visible="False" DataField="ExecutionID" SortExpression="ExecutionId"
                                                HeaderText="Execution ID"></asp:BoundColumn>
                                        </Columns>
                                    </asp:DataGrid></td>
                            </tr>
                        </table>
                        <table cellspacing="0" width="100%">
                            <tr>
                                <td>
                                    <cc2:Pager ID="bottomPager" runat="server"></cc2:Pager>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
